package com.yc.weixin.web.Handler;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * 用来处理点击左子树跳转的url
 * @author shuang
 *
 */
@Controller
public class WeixinTreeHandler {
	
	@RequestMapping("/weixin/{url}.do{arg}")
	public String userGrid(@PathVariable String url,String _){
		if(url==""||url==null){
			return "404";
		}
		return "weixin/back/"+url+".jsp?_="+_;
	}
	@RequestMapping("/weixinfront/{url}.do")
	public String weixinfront(@PathVariable String url){
		if(url==""||url==null){
			return "404";
		}
		return "weixin/front/"+url;
	}
}
